﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BiffenServiceLibary;
using BiffenController.ServiceReference2;
using BiffenModel;

namespace BiffenController
{
    public class ShowController
    {
        RemoteBookingSystemClient cli;

        public ShowController()
        {
            cli = new RemoteBookingSystemClient();
        }

        public void NewShow(DateTime date, int movID)
        {
            cli.NewShow(date, movID);
        }

        public Show GetOneShow(int showID)
        {
            return cli.GetOneShow(showID);
        }

        public void DeleteShow(int showID)
        {
            cli.DeleteShow(showID);
        }

        public void UpdateShow(int showID, DateTime date, int movieID)
        {
            cli.UpdateShow(showID, date, movieID);
        }
        public List<Show> AllShows()
        {
            return cli.AllShows().ToList();
        }
    }
}
